export interface IResult {
  code: string | number
  message: string
}

export namespace selectInfo {
  export interface IParms {}
  export interface IRes extends IResult {
    result: IResResult
  }
  export interface IResResult {
    add_time: string
    address: null | string
    avatar: null | string
    code: null | string
    gender: number
    id: number
    last_login_time: string
    mail: null | string
    nickname: string
    pageNum: null | string | number
    pageSize: null | string | number
    password: string
    password1: null | string
    phone: string
    salt: string
    secret: null | string
    title: null | string
    token: null | string
    url_one: null | string
    url_two: null | string
    verifyCode: null | string
  }
}

export namespace cpInfo {
  export interface IParms {
    nickname: string
    mail: string
    address: string
    url_one: string
    url_two: string
    password?: string
    password1?: string
  }
  export interface IRes extends IResult {
    result: any
  }
}

export namespace uploadAvatar {
  export type TParms = FormData
  export interface IRes extends IResult {
    result: any
  }
}

export namespace selectFile {
  export interface IRes extends IResult {
    result: any
  }
}

export namespace uploadPublish {
  export interface IParms {
    id?: string | number
    title: string
    introduction: string
    arrayParam: string[]
    file_url: string
  }
  export interface IRes extends IResult {
    result: any
  }
}

export namespace articleDisplay {
  export interface IParms {
    file_id: number | string
    display_state: 0 | 1
  }
  export interface IRes extends IResult {
    result: any
  }
}

export namespace selectOtherInfo {
  export interface IParms {
    id: number | string
  }
  export interface IRes extends IResult {
    result: any
  }
}
